import { RequestType } from '~/config/enum/request-type.enum'
const CONTROLLER = 'department'
const SERVICE = 'service-manage'

export default {
  /**
   * 新增机构
   */
  createDept: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'createDept',
    type: RequestType.Post
  },
  /**
   * 修改机构
   */
  updateDept: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'updateDept',
    type: RequestType.Put
  },
  /**
   * 删除机构
   */
  deleteDept: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'deleteDept',
    type: RequestType.Delete
  },
  /**
   * 获取所有机构
   */
  getAllDeptList: {
    service: SERVICE,
    controller: CONTROLLER,
    action: 'getAllDeptList',
    type: RequestType.Get
  }
}
